import * as echarts from "echarts/core";
import {
  LineChart,
  BarChart,
} from "echarts/charts";
import { GridComponent, TitleComponent, TooltipComponent, LegendComponent } from 'echarts/components';
import { UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';

// 注册必须的组件
echarts.use([
  GridComponent,
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  CanvasRenderer,
  LineChart,
  BarChart,
  UniversalTransition,
]);

export default echarts